Overfitting & Regularization in Logistic Regression

Question 1

Screenshot taken from Coursera

Question 2

Screenshot taken from Coursera


In [2]:
num_correct = 23100
num_error = 1900
error = num_error / float(num_correct + num_error)
print error


0.076

Question 3

Screenshot taken from Coursera

Question 4

Screenshot taken from Coursera

Question 5

Screenshot taken from Coursera

Question 6

Screenshot taken from Coursera

Question 7

Screenshot taken from Coursera

Question 8

Screenshot taken from Coursera